
<div ng-controller="WasteIncomeCtrl">
	
<div ng-include="'/templates/paramsSelect.html'"></div>
	<div class="page-heading">
		<ul class="breadcrumb">
			<li><a href="javascript:;">增值业务</a></li>
			<li><a href="javascript:;">延伸收入录入管理</a></li>
			<li class="active" ng-hide="menuName">废旧和其他收入录入</li>
			<li class="active" ng-show="menuName" ng-bind="menuName">废旧和其他收入录入</li>
			<span style="margin-right:10px;"  class="btn btn-danger btn-xs pull-right btn-flag " ng-show="flag" ng-click="delFlag('/added/old_other/')"><i class="fa fa-times"></i> 删除 </span>
			<span style="margin-right:10px;"  class="btn btn-info btn-xs pull-right btn-flag " ng-click="addFlag('#/added/old_other/')"><i class="fa fa-star"></i> 收藏 </span>
		
		</ul>
	</div>
	<!-- 页面头部  end-->

	<!--页面内容显示区域-->
	<div class="wrapper">
		<div class="row">
			<div class="col-sm-12">
				<!--表格显示区域-->
				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						废旧和其他收入录入查询
						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起-->
							<button type="button" class="btn btn-success pull-left" ng-click="SearchData()"
								style="margin-left: 5px;">
								<i class="fa fa-search"></i> 查询
							</button>
							<button type="button" class="btn btn-info  pull-left" ng-click="ExportData()"
								style="margin-left: 5px;">
								<i class="fa fa-table"></i> 导出EXCEL
							</button> <a href="javascript:;" class="fa fa-chevron-up form_display"></a>

						</span>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal form_hide">
						<div class="row">
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">事业部</label>
										<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_group_name" ng-keyup="clearGroup()"  name="entity_group_name"   class="form-control select_edit form_params" />
                                            <ul class="select_list">
                                                  <li ng-repeat="e in groups" ng-click='LoadBrands(e.group_name)' val_code="{{e.group_name}}" val_name="{{e.group_name}}">{{e.group_name}}</li>
                                            </ul>  
                                            </div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">店面品牌</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_brand_name" ng-keyup="clearGroupBrand()" name="entity_brand_name" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in gBrands" ng-click='LoadEntitys(e)' val_code="{{e.brand_code}}" val_name="{{e.brand_name}}">{{e.brand_name}}</li>
                                            </ul> 
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label" for="inputEmail1">店面信息</label>
									<div class="col-lg-8 col-sm-7">
											<input type="text" id="entity_name" name="entity_name" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in entitys" val_code="{{e.entity_code}}" val_name="{{e.entity_name}}">{{e.entity_name}}({{e.entity_code}})</li>
                                            </ul>  
									</div>
								</div>
							</div>
							<!--归属部门 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">归属部门</label>
									<div class="col-lg-8 col-sm-7">
										<select name="status_desc" class="form-control form_params" >
											<option></option>
											<option  ng-repeat="b in departmentList" value="{{b.status_desc}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">结案状态</label>
									<div class="col-lg-8 col-sm-7">
										<select name="so_status" class="form-control form_params" >
											<option></option>
											<!-- <option  ng-repeat="b in soStatusList" value="{{b.status_code}}">{{b.status_desc}}</option> -->
											<option value="14151001">未结案</option>
											<option value="14151002">已结案</option>
										</select>
									</div>
								</div>
							</div>
							<!-- 结案日期 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label" for="inputEmail1">结案日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											<input type="text" name="close_time1" class="form-control form_params" id="close_time1"
												onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'close_time2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											<input type="text" name="close_time2" class="form-control form_params" id="close_time2"
												onFocus="WdatePicker({minDate:'#F{$dp.$D(\'close_time1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							<!-- 主项目 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">主项目</label>
									<div class="col-lg-8 col-sm-7">
										<select name="item_type" class="form-control form_params" >
											<option></option>
											<option  ng-repeat="b in itemTypeList" value="{{b.status_code}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							<!-- 录入日期 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label" for="inputEmail1">录入时间</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											<input type="text" name="regist_date1" class="form-control form_params" id="regist_date1"
												onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'regist_date2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											<input type="text" name="regist_date2" class="form-control form_params" id="regist_date2"
												onFocus="WdatePicker({minDate:'#F{$dp.$D(\'regist_date1\')}',maxDate:'9020-10-01'})">
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</section>

				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						废旧和其他收入录入列表
						<headshow></headshow>
						<div class="option_check_list" style="display: inline-block;"></div>

						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起--> <a
							href="javascript:;" class="fa fa-chevron-down"></a>
						</span>
						<div class="pull-right"
							style="margin-right: 10px; margin-top: -6px; display: inline-block">
							<button type="button" class="btn btn-danger btn-sm " href="#paramsSelect"
								data-toggle="modal">
								<i class="fa fa-plus"></i> 在结果集中筛选
							</button>
							<button type="button" class="btn btn-success btn-sm"
								id="search_table" ng-click="SearchData();">
								<i class="fa fa-search"></i> 查询表格
							</button>
						</div>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal ">

						<div class="adv-table" style="overflow-x: scroll">
							<table id="wasteIncomeTable"
								class="table table-striped  nowrap  dataTable no-footer table_store table-hover float_head"
								cellspacing="0" width="100%">
								<thead>
									<tr>
										<th ng-show="!cols.contains('index_id')" column="index_id">序号</th>
										<!-- <th ng-show="!cols.contains('operation')" column="operation">操作</th> -->
										<th ng-show="!cols.contains('entity_code')" column="entity_code">店面编号</th>
										<th ng-show="!cols.contains('entity_name')" column="entity_name">店面名称</th>
										<th ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">店面品牌</th>
										<th ng-show="!cols.contains('group_name')" column="group_name">事业部</th>
										<th ng-show="!cols.contains('rebate_amount')" column="rebate_amount">收入金额</th>
										<th ng-show="!cols.contains('rebate_amount_notax')" column="rebate_amount_notax">不含税金额</th>
										<th ng-show="!cols.contains('tax')" column="tax">税率</th>
										<th qtype="date" ng-show="!cols.contains('rebate_date')" column="rebate_date">收入日期</th>
										<th ng-show="!cols.contains('transactor_name')" column="transactor_name">经办人</th>
										<th ng-show="!cols.contains('register_name')" column="register_name">登记人</th>
										<th qtype="date" ng-show="!cols.contains('regist_date')" column="regist_date">登记日期</th>
										<th ng-show="!cols.contains('status_desc')" column="status_desc">归属部门</th>
										<th ng-show="!cols.contains('so_status')" column="so_status">结案状态</th>
										<th qtype="date" ng-show="!cols.contains('close_time')" column="close_time">结案时间</th>
										<th ng-show="!cols.contains('itemtypename')" column="itemtypename">主项目</th>
										<th ng-show="!cols.contains('subitemname')" column="subitemname">下级项目</th>
										<th ng-show="!cols.contains('remark')" column="remark">备注</th>
									</tr>
								</thead>
								<tbody>
									<tr ng-repeat="c in datas">
										<td  ng-show="!cols.contains('index_id')" class="">{{$index + 1 }}</td>
										<!-- <td  ng-show="!cols.contains('operation')"><a href="javascript:" ng-click="showDetail(c.entity_code,c.loan_no); ">查看</a></td> -->
										<td ng-show="!cols.contains('entity_code')" column="entity_code">{{c.entity_code}}</td>
										<td ng-show="!cols.contains('entity_name')" column="entity_name">{{c.entity_name}}</td>
										<td ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">{{c.entity_brand_name}}</td>
										<td ng-show="!cols.contains('group_name')" column="group_name">{{c.group_name}}</td>
										<td ng-show="!cols.contains('rebate_amount')" column="rebate_amount">{{c.rebate_amount|number:2}}</td>
										<td ng-show="!cols.contains('rebate_amount_notax')" column="rebate_amount_notax">{{c.rebate_amount_notax?(c.rebate_amount_notax|number:2):'0.00'}}</td>
										<td ng-show="!cols.contains('tax')" column="tax">{{c.tax?(c.tax|number:2):'0.00'}}</td>
										<td ng-show="!cols.contains('rebate_date')" column="rebate_date">{{c.rebate_date|date:'yyyy-MM-dd'}}</td>
										<td  ng-show="!cols.contains('transactor_name')">{{c.transactor_name}}</td>
										<td  ng-show="!cols.contains('register_name')" >{{c.register_name}}</td>
										<td  ng-show="!cols.contains('regist_date')" >{{c.regist_date|date:'yyyy-MM-dd'}}</td>
										<td  ng-show="!cols.contains('status_desc')" >{{c.status_desc}}</td>
										<td  ng-show="!cols.contains('so_status')" >{{c.so_status == 14151001 ? '未结案':'已结案'}}</td>
										<td  ng-show="!cols.contains('close_time')" ">{{c.close_time|date:'yyyy-MM-dd'}}</td>
										<td  ng-show="!cols.contains('itemtypename')" >{{c.itemtypename}}</td>
										<td  ng-show="!cols.contains('subitemname')">{{c.subitemname}}</td>
										<td  ng-show="!cols.contains('remark')" class="">{{c.remark}}</td>
									</tr>
									<tr class="tbody_last_tr" ng-if="pagination.totalItems > 0">
										<td  ng-show="!cols.contains('index_id')" class=""></td>
										<td ng-show="!cols.contains('entity_code')" column="entity_code"></td>
										<td ng-show="!cols.contains('entity_name')" column="entity_name"></td>
										<td ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name"></td>
										<td ng-show="!cols.contains('group_name')" column="group_name"></td>
										<td ng-show="!cols.contains('rebate_amount')" column="rebate_amount">{{sumData.sum_rebate_amount.value|number:2}}</td>
										<td ng-show="!cols.contains('rebate_amount_notax')" column="rebate_amount_notax">{{sumData.sum_rebate_amount_notax.value?(sumData.sum_rebate_amount_notax.value|number:2):'0.00'}}</td>
										<td ng-show="!cols.contains('tax')" column="tax"></td>
										<td ng-show="!cols.contains('rebate_date')" column="rebate_date"></td>
										<td  ng-show="!cols.contains('transactor_name')"></td>
										<td  ng-show="!cols.contains('register_name')" ></td>
										<td  ng-show="!cols.contains('regist_date')" ></td>
										<td  ng-show="!cols.contains('status_desc')" ></td>
										<td  ng-show="!cols.contains('so_status')" ></td>
										<td  ng-show="!cols.contains('close_time')" "></td>
										<td  ng-show="!cols.contains('itemtypename')" ></td>
										<td  ng-show="!cols.contains('subitemname')"></td>
										<td  ng-show="!cols.contains('remark')" class=""></td>
									</tr>
								</tbody>
							</table>
							<div class="no-items" ng-show="pagination.totalItems <= 0">暂无数据</div>
						</div>
						<tm-pagination conf="pagination"></tm-pagination>
					</div>
				</section>
				<!--表格显示区域-->

			</div>
		</div>
	</div>
</div>

<form id="export_form" action="wasteIncome/export"  method="post">
	<input type="hidden" name="keys" id="keys" />
	<input type="hidden" name="names" id="names" /> 
	<input type="hidden" name="params" id="params" />
	<input type="hidden" name="search_opt" id="search_opt" /> 
	<input type="hidden" name="file_name" id="file_name" value="废旧和其他收入录入"/>
</form>